#ifndef __LEVEL_HPP__
#define __LEVEL_HPP__

namespace ly
{
    class LogLevel
    {
    public:
        enum class Level
        {
            debug = 0,
            info,
            warning,
            error,
            fatal
        };

        static const char* levelToString(Level level)
        {
            if(level == Level::debug) return "debug";
            if(level == Level::info) return "info";
            if(level == Level::warning) return "warning";
            if(level == Level::error) return "error";
            if(level == Level::fatal) return "fatal";
            return "unknown";
        }
    };
} // namespace ly

#endif // #define LEVEL_HPP